package com.book.ordermanagement.command;

import com.book.ordermanagement.command.receiver.OrderCommandReceiver;
import com.book.pojo.Order;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @param
 * @author oyz
 * @version 1.0.4
 * @description: 具体命令角色
 * @date 2023/12/21 21:37
 */
@Component
public class OrderCommand implements OrderCommandInterface {

    @Autowired
    private OrderCommandReceiver receiver;

    @Override
    public void execute(Order order) {
        receiver.action(order);
    }
}
